package cn.com.fy.controller;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.com.fy.bean.Resource;

@RestController
public class HellowController {

	@Autowired
	private Resource resoure;
	
	@RequestMapping("/hellow")
	public Object hellowWord() {
		
		return "hellow1 1word";
	}
	@RequestMapping("/getJDBCInfo")
	public Object getJDBCInfo() {
		Resource bean = new Resource();
		BeanUtils.copyProperties(resoure, bean);

		return bean;
	}
}
